package com.wanwen.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;

public class Visit {
	@TableId(type=IdType.AUTO)
	private Integer id;//编号
	private Integer stuid;//学生id
	private Integer uid;//用户id
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-ddHH:mm:ss")  
	@TableField(value = "visit_time")
	private Date visitTime;//回访时间
	@TableField(value = "visit_remark")
	private String visitRemark;//回访备注
	@TableLogic(value = "0", delval = "-1")
	private Integer deleted;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getStuid() {
		return stuid;
	}
	public void setStuid(Integer stuid) {
		this.stuid = stuid;
	}
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	public Date getVisitTime() {
		return visitTime;
	}
	public void setVisitTime(Date visitTime) {
		this.visitTime = visitTime;
	}
	public String getVisitRemark() {
		return visitRemark;
	}
	public void setVisitRemark(String visitRemark) {
		this.visitRemark = visitRemark;
	}
	public Integer getDeleted() {
		return deleted;
	}
	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}
	public Visit(Integer id, Integer stuid, Integer uid, Date visitTime, String visitRemark, Integer deleted) {
		super();
		this.id = id;
		this.stuid = stuid;
		this.uid = uid;
		this.visitTime = visitTime;
		this.visitRemark = visitRemark;
		this.deleted = deleted;
	}
	public Visit() {
		super();
	}
	@Override
	public String toString() {
		return "Visit [id=" + id + ", stuid=" + stuid + ", uid=" + uid + ", visitTime=" + visitTime + ", visitRemark="
				+ visitRemark + ", deleted=" + deleted + "]";
	}
	
	
}
